package ${packageName};

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.jasypt.util.text.BasicTextEncryptor;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ApiTest {

    @Test
    public void test_api() {
        BasicTextEncryptor textEncryptor = new BasicTextEncryptor();
        //  相当于jasypt.encryptor.password  盐
        textEncryptor.setPassword("Nagr");
        String myEncryptedPassword = textEncryptor.encrypt("root");
        System.out.println(myEncryptedPassword);
    }

}